home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 12
/
CU Amiga Magazine's Super CD-ROM 12 (1997)(EMAP Images)(GB)[!][issue 1997-07].iso
/
CUCD
/
Graphics
/
Gallery
/
Install
< prev
next >
Wrap
Text File
|
1997-04-16
|
2KB
|
74 lines
; *** Gallery installation scipt ***
; *** Set some useful messages ***
(set #install-msg (cat "\n\nGallery installation script.\n"
"This script installs Gallery on your Amiga.\n\n"
"Read the documentation for\n"
"more information on the distribution\n"
"and commercial usage.\n\n"
"Gallery © 1996,97 by Markus Hillenbrand\n"
"All rights reserved."))
(set #welcome-msg "Welcome to the Gallery installation!")
(set #bad-kick "You must be using Kickstart 39 to use this program!")
(set #bad-installer "You must be using Installer 43.x to install Gallery!")
(set #ask-prog-dir "Where shall I install Gallery ?\nThis should be in your path.\n(A drawer will NOT be created)")
(set #ask-gfx-dir "Where shall I install GfxCon ?\n(A drawer will NOT be created)\nRemember: this must be in your path!")
; *** Welcome the user to the installation
(message #install-msg)
; *** Check for Kickstart version ***
(if (< (/ (getversion) 65536) 39)
((abort #bad-kick))
)
; *** Check for Installer-Version ***
(if (< (/ @installer-version 65536) 43)
((abort #bad-installer))
)
; *** Delete old version in C:
(if (exists "C:Gallery") (delete "C:Gallery"))
; *** Ask the user for the default-destinations ***
(set #prog-dest (askdir (prompt #ask-prog-dir)
(help @askdir-help)
(default "SYS:Tools")
)
)
(set #gfx-dest (askdir (prompt #ask-gfx-dir)
(help @askdir-help)
(default "C:")
)
)
; *** Copy the programs ***
(copyfiles (prompt "Copying Gallery to" #lib-dest)
(help @copyfiles-help)
(source "Gallery")
(dest #prog-dest)
(infos)
)
(copyfiles (prompt "Copying GfxCon to" #gfx-dest)
(help @copyfiles-help)
(source "GfxCon_68020")
(dest #gfx-dest)
(confirm)
)
; ** set return value of installer
(set @default-dest #prog-dest)